projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538d05b
)
(add_menu_item): Draw menu items like titles if call_data is 0.
author
Andrew Innes
<andrewi@gnu.org>
Mon, 13 Jul 1998 19:54:15 +0000
(19:54 +0000)
committer
Andrew Innes
<andrewi@gnu.org>
Mon, 13 Jul 1998 19:54:15 +0000
(19:54 +0000)
src/w32menu.c
patch
|
blob
|
history
diff --git
a/src/w32menu.c
b/src/w32menu.c
index 6c793ca87e51135822327b5776ce8df37e4810c6..8adaace306a25888d5432eb563c86e6b78331350 100644
(file)
--- a/
src/w32menu.c
+++ b/
src/w32menu.c
@@
-2047,7
+2047,7
@@
add_menu_item (HMENU menu, widget_value *wv, HMENU item)
fuFlags = MF_SEPARATOR;
else
{
- if (wv->enabled
&& wv->call_data != 0
)
+ if (wv->enabled)
fuFlags = MF_STRING;
else
fuFlags = MF_STRING | MF_GRAYED;
@@
-2062,7
+2062,7
@@
add_menu_item (HMENU menu, widget_value *wv, HMENU item)
else
out_string = wv->name;
- if (wv->title)
+ if (wv->title
|| wv->call_data == 0
)
{
#if 0 /* no GC while popup menu is active */
out_string = LocalAlloc (0, strlen (wv->name) + 1);